<%@ Page Language="vb" AutoEventWireup="false" Codebehind="dialogSalir.aspx.vb" %>
<!DOCTYPE HTML PUBLIC "-"//W3C//DTD HTML 4.0 Transitional//EN">


<HTML>
    <HEAD>
        <title>dialogSalir</title>
        
        
    <script language="JavaScript" type="text/javascript">
    function cargarventana()
    {
    __doPostBack('Button2','');
    }
    
        function Respuesta(){
         var sData = dialogArguments;
        
        var datos=document.Form1.Usuario.options[document.Form1.Usuario.selectedIndex].text;
        sData.Guardar= datos;
        sData.DeseaGuardar();
       
        window.close();
        }
        
        function Siguiente()
        {
    
        var cadena='Default2.aspx?cadena=' + document.Form1.Usuario.options[document.Form1.Usuario.selectedIndex].text;
        alert(cadena);
        document.URL =cadena;
        //window.showModelessDialog (cadena,window,'dialogHeight: 300px; dialogWidth: 400px;status:no;edge:sunken;dialogHide:true;help:no;')
             
        }
       
     </script>
    <base target =_self ></base>
    </HEAD>
    
    <body  onload ="sourceCode()">
        <form id="Form1" method="post" runat="server">
            <table>
                
            </table>
            <asp:DropDownList ID="Usuario" runat="server" DataSourceID="AccessDataSource1"
                DataTextField="Usuario" DataValueField="Usuario">
            </asp:DropDownList>
            <input  type="button" id="Button1" value="button"  onclick ="Respuesta()"/>&nbsp;
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/datos.mdb"
                SelectCommand="SELECT [Usuario] FROM [Usuarios]"></asp:AccessDataSource>
            &nbsp;
            <asp:Button ID="Button2" runat="server" Text="Button ASP" />
        </form>
    </body>
</HTML> 